USE [BVVD]
GO

/****** Object:  Table [dbo].[F_NHOM_MENU]    Script Date: 10/14/2013 10:31:52 PM ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

SET ANSI_PADDING ON
GO

CREATE TABLE [dbo].[F_NHOM_MENU](
	[RECID] [int] IDENTITY(1,1) NOT NULL,
	[MANHOM] [varchar](15) NULL,
	[MAMN] [varchar](15) NULL,
	[SHOW] [int] NULL,
	[ADD] [int] NULL,
	[EDIT] [int] NULL,
	[DELETE] [int] NULL,
	[NGAYGAN] [date] NULL,
	[NGUOIGAN] [varchar](15) NULL,
PRIMARY KEY CLUSTERED 
(
	[RECID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

SET ANSI_PADDING OFF
GO

ALTER TABLE [dbo].[F_NHOM_MENU]  WITH CHECK ADD FOREIGN KEY([MANHOM])
REFERENCES [dbo].[LST_NHOMNSD] ([MANHOM])
GO

ALTER TABLE [dbo].[F_NHOM_MENU]  WITH CHECK ADD FOREIGN KEY([MAMN])
REFERENCES [dbo].[LST_MENU] ([MAMN])
GO


